package com.taiji.dianthus.domain.sms;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.Proxy;

import javax.persistence.*;
import java.util.Date;

/**
 * @ClassName t_sms_account
 * @Description
 * @Author H.M
 * @Date 2020/7/14
 */
@Entity
@Table(name = "t_sms_account")
@Proxy(lazy = false)
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
@ApiModel(description = "短信账号表")
public class SmsAccount {

    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id")
    @ApiModelProperty(value = "主键", name = "id")
    private String id;


    @Column(name = "user_account")
    @ApiModelProperty(value = "接口账号用户名", name = "userAccount")
    private String userAccount;

    @Column(name = "user_password")
    @ApiModelProperty(value = "接口账号密码", name = "userPassword")
    private String userPassword;

    @Column(name = "ec_name")
    @ApiModelProperty(value = "企业名称", name = "ecName")
    private String ecName;

    @Column(name = "sign")
    @ApiModelProperty(value = "签名编码", name = "sign")
    private String sign;

    @Column(name = "use_time")
    @ApiModelProperty(value = "调用账号发送短信时间", name = "useTime")
    private Date useTime;

    @Column(name = "add_serial")
    @ApiModelProperty(value = "服务代码", name = "addSerial")
    private String addSerial;

    @Column(name = "base_number")
    @ApiModelProperty(value = "基本接入号", name = "addSerial")
    private String baseNumber;

    @Column(name = "extend_number")
    @ApiModelProperty(value = "扩展号", name = "addSerial")
    private String extendNumber;

    @Column(name = "sort_number")
    @ApiModelProperty(value = "排序", name = "sortNumber")
    private Integer sortNumber;

    @Column(name = "is_out_call")
    @ApiModelProperty(value = "是否外部调用账号 0本系统  1外部调用", name = "isOutCall")
    private Integer isOutCall;

    @Column(name = "enable_flag", insertable = false, updatable = false)
    private Integer enableFlag;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getEcName() {
        return ecName;
    }

    public void setEcName(String ecName) {
        this.ecName = ecName;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public String getAddSerial() {
        return addSerial;
    }

    public void setAddSerial(String addSerial) {
        this.addSerial = addSerial;
    }

    public Integer getSortNumber() {
        return sortNumber;
    }

    public void setSortNumber(Integer sortNumber) {
        this.sortNumber = sortNumber;
    }

    public Integer getIsOutCall() {
        return isOutCall;
    }

    public void setIsOutCall(Integer isOutCall) {
        this.isOutCall = isOutCall;
    }

    public Integer getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Integer enableFlag) {
        this.enableFlag = enableFlag;
    }

    public String getBaseNumber() {
        return baseNumber;
    }

    public void setBaseNumber(String baseNumber) {
        this.baseNumber = baseNumber;
    }

    public String getExtendNumber() {
        return extendNumber;
    }

    public void setExtendNumber(String extendNumber) {
        this.extendNumber = extendNumber;
    }
}
